package cn.cream4u.ksks.adPojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@Data
@NoArgsConstructor
public class Result {
    int code;
    String msg;
    Object data;

    public static Result success(Object data) {return new Result(200,"success",data);}
    public static Result error(String msg) {return new Result(500,"error",null);}

}
